package sum.book.common.core.constant;

import java.nio.charset.Charset;

public class CommonConstants {

    /**
     * 默认编码
     */
    public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");

    /**
     * 默认日期格式(带时分秒)
     */
    public static final String DATETIME_PATTERN = "yyyy-MM-dd HH:mm:ss";

    /**
     * 默认日期格式(不带时分秒)
     */
    public static final String DATE_PATTERN = "yyyy-MM-dd";

    /**
     * 数字常量-1
     */
    public static final Integer MINUS_ONE_CONSTANT_INT = -1;

    /**
     * 数字常量-1L
     */
    public static final Long MINUS_ONE_CONSTANT_LONG = -1L;
    /**
     * 数字常量0
     */
    public static final Integer ZERO_CONSTANT_INT = 0;
    /**
     * 数字常量1
     */
    public static final Integer ONE_CONSTANT_INT = 1;

    /**
     * 数字常量2
     */
    public static final Integer TWO_CONSTANT_INT = 2;

    /**
     * 数字常量3
     */
    public static final Integer THREE_CONSTANT_INT = 3;

    /**
     * 数字常量4
     */
    public static final Integer FOUR_CONSTANT_INT = 4;

    /**
     * 数字常量5
     */
    public static final Integer FIVE_CONSTANT_INT = 5;

    /**
     * 数字常量6
     */
    public static final Integer SIX_CONSTANT_INT = 6;

    /**
     * 数字常量7
     */
    public static final Integer SEVEN_CONSTANT_INT = 7;

    /**
     * 数字常量8
     */
    public static final Integer EIGHT_CONSTANT_INT = 8;

    /**
     * 数字常量9
     */
    public static final Integer NINE_CONSTANT_INT = 9;

    /**
     * 数字常量10
     */
    public static final Integer TEN_CONSTANT_INT = 10;

    /**
     * 字符串常量 11
     */
    public static final String ELEVEN_CONSTANT_STRING = "11";

    /**
     * 字符串常量 29
     */
    public static final String TWENTY_NINE_CONSTANT_STRING = "29";

    /**
     * ORDER_Gateway常量
     */
    public static final Integer GATEWAY_ORDER = -200;

    /**
     * 批量导入大小
     */
    public static final Integer BATCH_IMPORT_SIZE = 100;

    /**
     * 起始行，因为没有表头，所以从第一行开始
     */
    public static final Integer FIRST_ROW = 1;

    /**
     * 终止行
     */
    public static final Integer LAST_ROW = 65535;

    /**
     * 导入最大限制行数
     */
    public static final Integer IMPORT_MAX_ROW = 1000;

    /**
     * 逗号 ,
     */
    public static final String COMMA = ",";

    /**
     * 点 .
     */
    public static final String SPOT = ".";

    /**
     * 导入结果缓存时间(分钟)
     */
    public static final Integer IMPORT_RESULT_CACHE_TIME = 5;

    /**
     * 导入成功
     */
    public static final String IMPORT_SUCCESS = "成功";

    /**
     * 导入失败
     */
    public static final String IMPORT_FAIL = "失败:";

    /**
     * 导入重复
     */
    public static final String IMPORT_REPEART = "重复:";

    /**
     *  连接符号
     */
    public static final String MIDDLE_LINE = "-";

    /**
     * 下划线
     */
    public static final String UNDER_LINE = "_";

    /**
     *  higoplat公共前缀Key
     */
    public static final String HIGOPLAT_SERVICE_PREFIX_KEY = "higoplat:";

    /**
     * 角色code前缀Key
     */
    public static final String ROLE_CODE_PREFIX_KEY = "roleCode:";
}
